package com.example.a17376052_wcp_finaltest.fragment;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.example.a17376052_wcp_finaltest.MainActivity;
import com.example.a17376052_wcp_finaltest.R;
import com.example.a17376052_wcp_finaltest.TitleActivity;

public class Main2Activity extends AppCompatActivity {
    private Button mBtnButton5;
    private Button mBtnButton6;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main3);
        mBtnButton5 = findViewById(R.id.btn_button5);
        mBtnButton6=findViewById(R.id.btn_button6);
        mBtnButton5.setOnClickListener(new View.OnClickListener() {

            @Override
            public void onClick(View v) {
                // TODO Auto-generated method stub
                Intent intent = new Intent(Main2Activity.this, XiangQingActivity.class);
                startActivity(intent);
                mBtnButton6.setOnClickListener(new View.OnClickListener() {

                    @Override
                    public void onClick(View v) {
                        // TODO Auto-generated method stub
                        Intent intent = new Intent(Main2Activity.this, MoreActivity.class);
                        startActivity(intent);


            }

        });

            }

        });

    }
    }

